package com.bicon.botu.finance.wallet.processor.service;

import com.bicon.botu.core.base.common.entity.BaseResult;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: sx
 * @Date: Created in 10:07 2017/7/3/003
 */
public interface PaymentService {


    /**
     * 充值、支付
     * @param code
     * @param orderNum
     * @param subjectName
     * @param body
     * @param money
     * @param type
     * @param attr
     * @return
     */
    String launchPay(String code, String orderNum, String subjectName, String body, String money, String type, String attr);

    /**
     * 提现
     * @param code
     * @param type
     * @param orderNum
     * @param payeeAccount
     * @param amount
     * @param payeeName
     * @param identityCard
     * @param remark
     * @return
     */
    String transfer(String code, String type, String orderNum, String payeeAccount, String amount, String payeeName, String identityCard, String remark);

    /**
     * 申请退款
     * @param code      引用App
     * @param orderNum  订单NO
     * @param money     金额
     * @param type      退款类型支付宝微信，平台
     * @param refundNo  退款编号
     * @param refundReason  退款原因
     * @param orderMoney  原订单金额
     * @return
     */
    String refund(String code, String orderNum, String money, String type,  String refundNo,  String refundReason, String orderMoney);
}